from tortoise import Model, fields
# https://tortoise-orm.readthedocs.io/en/latest/
class Moji(Model):
    cityId = fields.IntField(pk=True)
    name = fields.CharField(50)

    def __str__(self):
        # return f"{self.cityId}: {self.name}"
        return "{cityId: %s}" % (self.cityId)

    def __dict__(self):
        return {
            'cityId': self.cityId
        }